home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 1159 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: freyburg@wavelet.stanford.edu (Brian Michael Freyburger)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Template argument deduction
  5. Date: 18 Apr 1996 21:14:46 GMT
  6. Organization: Stanford University
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <FREYBURG.96Apr18141053@wavelet.stanford.edu>
  9. References: <FREYBURG.96Apr15144107@glitch.stanford.edu> <xsoratnorr5.fsf@avs.cs.rpi.edu>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. X-Nntp-Posting-Host: wavelet.stanford.edu
  12. In-Reply-To: vandevod@cs.rpi.edu's message of 18 Apr 96 00:49:20 GMT
  13. Content-Length: 718
  14. X-Lines: 23
  15. Originator: clamage@taumet
  16.  
  17.  
  18. > >>>>> "BF" == Brian Michael Freyburger <freyburg@glitch.stanford.edu> writes:
  19. > BF> Reading section 14.10.2 of the January WP, I can not figure out
  20. > BF> whether the following function call can be deduced:
  21. > BF> template <class S, class T = S>
  22. > BF> int foo(S s, T t = T());
  23. > It's a non-issue since default template arguments cannot be
  24. > specified for function templates.
  25. >     Daveed
  26.  
  27. Where in the working papers does it say this?  They appear to me to be
  28. introduced in 14.8 [temp.arg], which as far as I can tell applies to
  29. both functions and classes.  I see nothing in 14.10 [temp.fct] which
  30. disallows them--what did I miss?
  31.  
  32. Why are they disallowed?  Are there any technical difficults?
  33.  
  34. Thanks,
  35.  
  36. Brian 
  37.  
  38.  
  39. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  40. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  41. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  42. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  43. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  44.